package com.rd.student.ruanjian.class4.zhouzihe.day0803;


public class Dog extends Animal {
    String name;
    String furColor;

    Dog(String name, String furColor) {
        this.name = name;
        this.furColor = furColor;
        super.setName("狗");
    }


    @Override
    public void enjoy() {
        System.out.println("狗叫");
    }

    @Override
    public void voice() {

    }

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", furColor='" + furColor + '\'' +
                '}';
    }
}
